Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve several next-intl deprecation warnings #1336

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

MikeEdgar
Copy link
Member

No description provided.

Signed-off-by: Michael Edgar <medgar@redhat.com>
@MikeEdgar MikeEdgar added this to the 0.6.0 milestone Jan 2, 2025
Comment on lines +19 to +26
export const { Link, redirect, usePathname, useRouter } = {
Link: nav.Link,
redirect: (path: string) => {
nav.redirect({ href: path, locale: "en" });
},
usePathname: nav.usePathname,
useRouter: nav.useRouter,
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The redirect function requires the locale on each use now. This is a cheat to use the default since we're only supporting en at the moment.

@MikeEdgar MikeEdgar enabled auto-merge (squash) January 3, 2025 10:49
Copy link

sonarqubecloud bot commented Jan 3, 2025

@MikeEdgar MikeEdgar merged commit ae09b4d into streamshub:main Jan 3, 2025
6 checks passed
@MikeEdgar MikeEdgar deleted the fix-next-intl-warnings branch January 3, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants